import uvicorn
from mian.control import Control
from mian.conf import Service
def main():
    app = Control().app
    conf = Service()
    conf = uvicorn.Config(app, host=conf.host, port=conf.port)
    service = uvicorn.Server(conf)
    service.run()


if __name__ == '__main__':
    main()

